package com.atguigu.a_visit;

public class Demo {
    //四种访问权限修饰符的四个变量
    public String name;
    protected int age;
    String gender;//性别
    private double salary;//薪水


    //同一个类中
    public void show(){
        System.out.println("name = " + name);
        System.out.println("age = " + age);
        System.out.println("gender = " + gender);
        System.out.println("salary = " + salary);
    }
}
